package cn.jiyun.dao;

import cn.jiyun.pojo.SC;
import cn.jiyun.pojo.Setmeal;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface SetmealDao extends BaseMapper<Setmeal> {


    Page<SC> selectPagecs(Page<SC> page1, @Param("name") String name);

    @Update("update setmeal set `status`=0 where id= #{id}")
    void status0(@Param("id") Long id);

    @Update("update setmeal set `status`=1 where id= #{id}")
    void status1(@Param("id") Long id);

    @Select("SELECT * FROM `setmeal` where id= #{id}")
    SC hx(@Param("id") Long id);
}
